package com.huawei.appmarket.service.store.awk.card;

import android.content.Context;
import android.view.View;
import com.huawei.appgallery.foundation.card.base.card.BaseDistCard;
import com.huawei.appgallery.foundation.ui.framework.cardkit.bean.CardBean;
import com.huawei.appmarket.service.store.awk.bean.SafeAppCardBean;
import java.util.ArrayList;
import java.util.List;
import o.cgz;

public class TopadAppCard extends BaseDistCard {
    private PlaceholderCard ʽ = null;
    private SafeAppCard ˋ = null;
    private List<cgz> ᐝ = new ArrayList();

    public TopadAppCard(Context context) {
        super(context);
    }

    public SafeAppCard ˋ() {
        return this.ˋ;
    }

    public void ˊ(SafeAppCard safeAppCard) {
        this.ˋ = safeAppCard;
    }

    public void ॱ(PlaceholderCard placeholderCard) {
        this.ʽ = placeholderCard;
    }

    public cgz ˏ(View view) {
        ʽ(view);
        return this;
    }

    public void ˋ(cgz o_cgz) {
        if (o_cgz != null) {
            this.ᐝ.add(o_cgz);
        }
    }

    public void ˏ(CardBean cardBean) {
        cardBean = (SafeAppCardBean) cardBean;
        if (this.ˋ != null) {
            this.ˋ.ˏ(cardBean);
            this.ˋ.ˉ().setVisibility(0);
            this.ˋ.ᐝ().setVisibility(8);
        }
        if (this.ʽ != null) {
            this.ʽ.ˉ().setVisibility(0);
        }
    }
}
